//
//  RealNameController.m
//  DianDangDai
//
//  Created by bhf on 2017/12/21.
//  Copyright © 2017年 bhf. All rights reserved.
//

#import "RealNameController.h"

@interface RealNameController ()

@end

@implementation RealNameController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupViews];
    self.title = @"安全设置";
    NSString *urlString = [NSString stringWithFormat: @"%@OPT=1001&sign=%@",API_LOGIN_URL_STRING,USER_SIGN];
    
    NSLog(@"%@",urlString);
    [[CDHttpHelper defaultCDHttpHelper] get:urlString params:nil success:^(id responseObj) {
        NSDictionary *dict = [responseObj objectFromJSONData];
        NSLog(@"%@",dict);
        self.name.placeholder = dict[@"realityName"];
        self.idCard.placeholder = dict[@"idNumber"];
        [self.view makeToast:dict[@"msg"]];
    } failure:^(NSError *error) {
        
    } showHUD:YES];
    // Do any additional setup after loading the view.
}

- (void)setupViews {
    self.bottomBtn.layer.cornerRadius = 22;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
